#pragma once
#include <irrlicht.h>
#include "GraphicEngine.h"

class SignalClass
{
public:
	SignalClass(void);
	~SignalClass(void);
	void SetSignal(float mindyn, float maxdyn, float gain, irr::video::SColor color, wxString Label, wxString unitLabel, int lGraph, int lRecord, int Frequency);
	void Remap (void);
	void SetDetrend (bool Val);
	bool GetDetrend ();
	void Configure();
	void AddData(float data);
	void ResizeTo(int NewLen);

	int MaxDyn, MinDyn, Dyn;
	float Gain;
	irr::video::SColor Color;
	irr::video::SColor ColorLabel;
	wxString Label,UnitLabel;
	float *dataRecorded;
	float *data2Plot;
	int frequency,secLength;
	

	//Cursor for adding data
	int cursor, gCursor, gEndCursor;
	int lGraph, lRecord;
	bool DetrendOn;
private:
	
	float Offset, Acc;
};


